﻿<%@ Page Title="" Language="C#" MasterPageFile="~/default.Master" AutoEventWireup="true"
    CodeBehind="CorrectMaintain.aspx.cs" Inherits="InstrumentCheck.WebUI.CorrectMaintain" %>

<%@ Register Src="UserControl/UCSelectAssetNO.ascx" TagName="UCSelectAssetNO" TagPrefix="uc1" %>
<%@ Register Src="~/UserControl/UCSelectEmp.ascx" TagName="UCSelectEmp" TagPrefix="uc2" %>
<%@ Register Src="UserControl/UCSelectPR.ascx" TagName="UCSelectPR" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript" src="js/Calendar/WdatePicker.js"></script>
    <script type="text/javascript" src="js/Maintain.js"></script>
    <style type="text/css">
        .style1
        {
            text-align: left;
            border-color: Black;
            border-style: groove;
            height: 30px;
            font-weight: bold;
            width: 545px;
        }
        .style2
        {
            text-align: left;
            border-color: Black;
            border-style: groove;
            height: 30px;
            font-weight: bold;
            width: 64px;
        }
        .style3
        {
            font-size: larger;
            text-align: center;
            border-color: Black;
            border-style: groove;
            height: 30px;
            font-weight: bold;
            width: 109px;
        }
        .style4
        {
            font-size: larger;
            text-align: center;
            border-color: Black;
            border-style: groove;
            height: 30px;
            font-weight: bold;
            width: 126px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="server">
    <table width="800" border="1" cellspacing="0" cellpadding="0" rules="all" frame="box"
        style="border-style: groove; border-color: Black;">
        <tr>
            <td colspan="3" class="desc">
                儀 校 設 備 基 本 資 料
            </td>
        </tr>
        <tr>
            <td class="style2" rowspan="2">
                <table>
                    <tr>
                        <td>
                            <asp:Button ID="Button1" runat="server" CssClass="mainButton" Text="新 增" /><br /><br /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Button2" runat="server" CssClass="mainButton" Text="修 改" /><br /><br /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Button3" runat="server" CssClass="mainButton" Text="儲 存" /><br /><br /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Button4" runat="server" CssClass="mainButton" Text="取 消" /><br /><br /><br /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Button5" runat="server" CssClass="mainButton" Text="上一筆" /><br /><br /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Button6" runat="server" CssClass="mainButton" Text="下一筆" /><br /><br /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Button7" runat="server" CssClass="mainButton" Text="查 詢" /><br /><br /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" CssClass="label" Text="15/145"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="style1">
                <table border="1" cellspacing="0" cellpadding="0" rules="all" frame="box" width="100%">
                    <tr>
                        <td class="style3">
                            資產類別:
                        </td>
                        <td class="descData">
                            <asp:DropDownList runat="server" ID="ddlAssetType" CssClass="mustDropDownList">
                                <asp:ListItem Value=""></asp:ListItem>
                                <asp:ListItem Value="1">固定資產</asp:ListItem>
                                <asp:ListItem Value="2">列管品</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            購買日期:
                        </td>
                        <td class="descData">
                            <asp:TextBox runat="server" ID="txtBuyDate" CssClass="must" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy/MM/dd'})" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            資產編號:
                        </td>
                        <td class="descData" colspan="3">
                            <asp:TextBox ID="txtAssetNO" runat="server" CssClass="must" Width="124px" />
                            <img src="images/imgFind.png" alt="Find" onclick="ShowChoiceDiv('divAsset',600,400)" />
                        </td>
                    </tr>
                    <tr><td class="style3">
                            購買幣別:</td><td class="descData"><asp:DropDownList ID="ddlBuyCurrency" 
                                runat="server" Height="16px" 
                                Width="122px" SkinID="mustDropDownList">
                                <asp:ListItem Value=""></asp:ListItem>
                                <asp:ListItem Value="NTD">NTD</asp:ListItem>
                                <asp:ListItem Value="USD">USD</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            金額:</td><td class="descData"><asp:TextBox runat="server" ID="txtBuyAmount" SkinID="mustTextBox" />
                        </td></tr>
                    <tr>
                        <td class="style3">
                            儀器品名:
                        </td>
                        <td class="descData">
                            <asp:Label runat="server" ID="lblChiName" />
                        </td>
                        <td class="style4">
                            建檔日期:
                        </td>
                        <td class="descData">
                            <asp:TextBox runat="server" ID="txtFirstCorrectDate0" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy/MM/dd'})"
                                CssClass="must" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            儀器規格:
                        </td>
                        <td colspan="3" class="descData">
                            <asp:Label runat="server" ID="lblSpec" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            儀器型號:
                        </td>
                        <td class="descData">
                            <asp:Label ID="lblModuleNO" runat="server" />
                        </td>
                        <td class="style4">
                            首校日期:
                        </td>
                        <td class="descData">
                            <asp:TextBox runat="server" ID="txtFirstCorrectDate" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy/MM/dd'})"
                                CssClass="must" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;儀器廠牌:</td>
                        <td class="descData">
                            &nbsp;
                            <asp:Label runat="server" ID="lblBrand" />
                        </td>
                        <td class="style4">
                            應校日期:
                        </td>
                        <td class="descData">
                            <asp:TextBox ID="txtNeedCorrectDate" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy/MM/dd'})"
                                runat="server" CssClass="must" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;校驗結果:</td>
                        <td class="descData">
                            <asp:DropDownList runat="server" ID="ddlCorrectStatus" 
                                SkinID="mustDropDownList">
                                <asp:ListItem Value=""></asp:ListItem>
                                <asp:ListItem Value="1">合格</asp:ListItem>
                                <asp:ListItem Value="2">限定使用</asp:ListItem>
                                <asp:ListItem Value="0">不合格</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            下次校驗日期:
                        </td>
                        <td class="descData">
                            <asp:Label runat="server" ID="lblBrand0" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;保管人:
                        </td>
                        <td class="descData">
                            <asp:Label runat="server" ID="lblKeeper" />
                        </td>
                        <td class="style4">
                            保管部門:</td>
                        <td class="descData">
                            <asp:Label runat="server" ID="lblKeepDept" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            校驗區分:
                        </td>
                        <td class="descData">
                            <asp:DropDownList runat="server" ID="ddlCorrectType" CssClass="mustDropDownList">
                                <asp:ListItem Value=""></asp:ListItem>
                                <asp:ListItem Value="1">內校</asp:ListItem>
                                <asp:ListItem Value="2">外校</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            目前狀況:
                        </td>
                        <td class="descData">
                            <asp:DropDownList ID="ddlCurrentStatus" runat="server" CssClass="mustDropDownList">
                                <asp:ListItem Value=""></asp:ListItem>
                                <asp:ListItem Value="1">需校驗</asp:ListItem>
                                <asp:ListItem Value="4">免驗</asp:ListItem>
                                <asp:ListItem Value="5">暫停使用</asp:ListItem>
                                <asp:ListItem Value="6">禁止使用</asp:ListItem>
                                <asp:ListItem Value="7">報廢</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr><td class="style3">
                            校驗幣別:</td><td class="descData"><asp:DropDownList ID="ddlCorrectCurrency" 
                                runat="server" Height="16px" 
                                Width="125px" SkinID="mustDropDownList">
                                <asp:ListItem Value=""></asp:ListItem>
                                <asp:ListItem Value="NTD">NTD</asp:ListItem>
                                <asp:ListItem Value="USD">USD</asp:ListItem>
                            </asp:DropDownList></td><td class="style4">
                            費用:</td><td class="descData"><asp:TextBox runat="server" ID="txtCorrectAmount" CssClass="must" />
                        </td>
                        
                    </tr>
                    <tr>
                        <td class="desc">PR單號</td>
                        <td colspan="3" class="descData">
                            <asp:TextBox runat="server" ID="txtPRNO" CssClass="must" />
                            <img src="images/imgFind.png" alt="Find" onclick="ShowChoiceDiv('divPR',400,300)" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            附件:
                        </td>
                        <td class="descData" colspan="3">
                            <asp:Label runat="server" ID="lblCorrectAttach" Width="94%" />
                            <img alt="Upload Attachment" src="images/imgAttachment.gif" onclick="ShowChoiceDiv('divAttach',600,400)" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td class="style3">
                            允收標準:
                        </td>
                        <td colspan="3" class="descData">
                            <asp:TextBox runat="server" ID="txtStandard" MaxLength="4000" TextMode="MultiLine"
                                Width="96%" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            備註欄:
                        </td>
                        <td colspan="3" class="descData">
                            <asp:TextBox runat="server" ID="txtRemark" MaxLength="4000" TextMode="MultiLine"
                                Width="96%" />
                        </td>
                    </tr>
                </table>
            </td>
            <td class="descData" align="center">
                <table border="1" cellspacing="0" cellpadding="0" rules="all" frame="box"  width="100%">
                    <tr>
                        <td class="descData" align="center">
                            <table width="100%">
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:Image ID="Image1" runat="server" AlternateText="儀器圖片" Width="100%" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <br /><asp:Button ID="Button8" runat="server" CssClass="mainButton" Text="上傳圖片" /><br /><br />
                                    </td>
                                    <td align="center">
                                        <br /><asp:Button ID="Button9" runat="server" CssClass="mainButton" Text="刪除圖片" /><br /><br />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <asp:Button ID="Button10" runat="server" CssClass="mainButton" Text="上一張" /><br /><br />
                                    </td>
                                    <td align="center">
                                        <asp:Button ID="Button11" runat="server" CssClass="mainButton" Text="下一張" /><br /><br />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="descData">
                            <table width="100%">
                                <tr>
                                    <td>
                                        校驗週期:
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                                            <asp:ListItem>半年</asp:ListItem>
                                            <asp:ListItem>一年</asp:ListItem>
                                            <asp:ListItem>兩年</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="descData">
                            <table width="100%">
                                <tr>
                                    <td>
                                        送校狀態:
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <asp:RadioButtonList ID="RadioButtonList2" runat="server">
                                            <asp:ListItem>已送校</asp:ListItem>
                                            <asp:ListItem>已回廠</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="descData">
                <table width="100%" border="1" cellspacing="0" cellpadding="0" rules="all" frame="box">
                    <tr>
                        <td class="desc">
                            歷程記錄:
                        </td>
                    </tr>
                    <tr>
                        <td class="descData">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:BoundField HeaderText="校驗歷程" />
                                    <asp:BoundField HeaderText="申請單號" />
                                    <asp:BoundField HeaderText="應校日期" />
                                    <asp:BoundField HeaderText="校驗週期" />
                                    <asp:BoundField HeaderText="下次校驗日期" />
                                    <asp:BoundField HeaderText="歷程記錄" />
                                    <asp:BoundField HeaderText="申請原因" />
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="divBack" oncontextmenu="return false" style="position: absolute; top: 0px;
        filter: alpha(opacity=60); background-color: #777777; z-index: 2; left: 0px;
        display: none;">
    </div>
    <div id="divAsset" align="center" style="position: absolute; z-index: 3; background-color: #ffffef;
        display: none;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <uc1:UCSelectAssetNO ID="UCSelectAssetNO1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="divUser" style="position: absolute; z-index: 3; background-color: #ffffef;
        display: none; text-align: center">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <uc2:UCSelectEmp ID="UCSelectEmpApplicant" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="divImages" style="position: absolute; z-index: 3; background-color: #ffffef;
        display: none; text-align: center">
        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
                <iframe src="uploadImage.aspx" id="file" style="width: 99%; height: 400px;"></iframe>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="divAttach" style="position: absolute; z-index: 3; background-color: #ffffef;
        display: none; text-align: center">
        <asp:UpdatePanel ID="updatepanel4" runat="server">
            <ContentTemplate>
                <iframe src="uploadAttach.aspx" id="file" style="width: 98%; height: 400px;"></iframe>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="divPR" style="position: absolute; z-index: 3; background-color: #ffffef;
        display: none; text-align: center">
        <asp:UpdatePanel ID="updatepanel5" runat="server">
            <ContentTemplate>
                <uc3:UCSelectPR ID="UCSelectPR1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
